<template>
  <div class="sub-tips">
    <span>订阅后可接收专属短信通知</span
    ><atom-icon name="close" class="close" @click.stop="$emit('close')" />
  </div>
</template>

<script>
import '@atom/atom-icons/icons/close';
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>
<style lang="less" scoped>
.sub-tips {
  display: flex;
  align-items: center;
  position: fixed;
  top: 8px;
  right: 12px;
  width: 220px;
  height: 34px;
  background: #3b3b3b;
  border-radius: 6px;
  font-size: 14px;
  padding: 8px 16px;
  box-sizing: border-box;
  z-index: 100;
  &::before {
    position: absolute;
    top: -6px;
    right: 14px;
    content: '';
    border-top: 3px solid transparent;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 3px solid #3b3b3b;
  }
  span {
    font-family: PingFangSC-Regular;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 0;
    line-height: 18px;
    font-weight: 400;
  }
  .close {
    width: 16px;
    height: 16px;
    right: 21px;
    color: #ffffff;
    margin-left: 4px;
  }
}
</style>
